package oauth2

import (
	"context"
	"jk-time/webook/internal/domain"
)

type Service interface {
	AuthURL(ctx context.Context, state string) (string, error)
	VerifyCode(ctx context.Context, code string) (domain.Oauth2Info, error)
	FindOrCreateByInfo(ctx context.Context, info domain.Oauth2Info) (domain.User, error)
}
